// Author: Domien Nowicki

#ifndef RESIZEDIALOG_H
#define RESIZEDIALOG_H

#include <QDialog>
#include <QButtonGroup>
#include <QDialogButtonBox>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QSpinBox>
#include <QVBoxLayout>


class ResizeDialog: public QDialog
{
	Q_OBJECT

public:
	ResizeDialog(QWidget *parent=0);
	virtual ~ResizeDialog();


signals:
	void resize(unsigned int width, unsigned int height);

private slots:
	void slotResize();

private:
	void SetupDialog();

    QGridLayout *gridLayout;
    QVBoxLayout *vboxLayout;
    QLabel *labelResize;
    QHBoxLayout *hboxLayout;
    QSpinBox *widthSize;
    QLabel *labelX;
    QSpinBox *heightSize;
    QDialogButtonBox *buttonBox;
	QSpacerItem *spacerItem;
};

#endif //RESIZEDIALOG_H

